export doors module titles in project

hi

2 questions please ;

1) is there an easy way to export the names of all the modules in a particular project???

2) my project is at an end and i want to baseline all the modules within that project - however some of the modules have been changed. is there an easy way to quickly loop through all the modules in the project and export if there are any changes since last baseline?? a simple yes / no if object text has changed would be great!!  im hoping there is - i dont want to have to sit and compare baseline for all the modules!!!!

thanks

:)


doorsuser77 - Tue Jan 06 05:41:44 EST 2015

Re: export doors module titles in project
GregM_dxler - Tue Jan 06 10:37:48 EST 2015

Happy new year,

smartdxl has a dxl script to do the first request.  Check it out at www.smartdxl.com (Hierarchy->Inventory of items).

For the second part, suggest you can use the last modified on for the module?  Compare it to the previous baseline to see if it has changed.  Not sure if that will catch any changes.  If you only care about certain objects (like only requirements), you can filter and then loop through and check to see if there is any history on each object.  No history means no changes (if it is set up to generate history on changes).

I have a script that uses the command saved(obj) to check to see if an object has been saved.  Passes a boolean.  But this command is not in the dxl reference manual, so it might be an undocumented feature.

Hope this helps,

Greg

Re: export doors module titles in project
doorsuser77 - Thu Jan 08 05:30:36 EST 2015

GregM_dxler - Tue Jan 06 10:37:48 EST 2015

Happy new year,

smartdxl has a dxl script to do the first request.  Check it out at www.smartdxl.com (Hierarchy->Inventory of items).

For the second part, suggest you can use the last modified on for the module?  Compare it to the previous baseline to see if it has changed.  Not sure if that will catch any changes.  If you only care about certain objects (like only requirements), you can filter and then loop through and check to see if there is any history on each object.  No history means no changes (if it is set up to generate history on changes).

I have a script that uses the command saved(obj) to check to see if an object has been saved.  Passes a boolean.  But this command is not in the dxl reference manual, so it might be an undocumented feature.

Hope this helps,

Greg

hi

thanks for that. i tried the dxl script but generates a series of errors? i copied the dxl code and ran in while my project was selected

ta

Re: export doors module titles in project
Tony_Goodman - Thu Jan 08 08:48:22 EST 2015

doorsuser77 - Thu Jan 08 05:30:36 EST 2015

hi

thanks for that. i tried the dxl script but generates a series of errors? i copied the dxl code and ran in while my project was selected

ta

Check that you are copying the text correctly by using the "copy to clipboard" icon in the top right of the code window.

Alternatively, use the "view source" icon and copy from there.

 

Hope that helps, if not then post the errors and I take a look.

 

Tony

Re: export doors module titles in project
GregM_dxler - Thu Jan 08 08:50:04 EST 2015

doorsuser77 - Thu Jan 08 05:30:36 EST 2015

hi

thanks for that. i tried the dxl script but generates a series of errors? i copied the dxl code and ran in while my project was selected

ta

Hello,

The script works fine for me.  Probably the error was in copying it.  Being in browsers causes funny things with word wraps, etc.  Using ie11, I moved my cursor into the code block, selected the view source icon, used CTRL-A, CTRL-C to copy the code.  Then in DOORS, I selected my project from the database explorer window, selected Tools->Edit DXL and in the DXL window I used CTRL-V to paste the code.  It ran perfectly.

Also note the script writes a file to your c:\temp directory.  If you don't have that or don't have access, you might need to fix that first.

Hope this helps,

Greg

Re: export doors module titles in project
Tony_Goodman - Thu Jan 08 08:56:11 EST 2015

GregM_dxler - Thu Jan 08 08:50:04 EST 2015

Hello,

The script works fine for me.  Probably the error was in copying it.  Being in browsers causes funny things with word wraps, etc.  Using ie11, I moved my cursor into the code block, selected the view source icon, used CTRL-A, CTRL-C to copy the code.  Then in DOORS, I selected my project from the database explorer window, selected Tools->Edit DXL and in the DXL window I used CTRL-V to paste the code.  It ran perfectly.

Also note the script writes a file to your c:\temp directory.  If you don't have that or don't have access, you might need to fix that first.

Hope this helps,

Greg

The following link has a code snippet showing how to access the Module Properties and read the Last Modified date.

https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014825767&ps=25

Tony

Re: export doors module titles in project
GregM_dxler - Thu Jan 08 09:15:27 EST 2015

Tony_Goodman - Thu Jan 08 08:56:11 EST 2015

The following link has a code snippet showing how to access the Module Properties and read the Last Modified date.

https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014825767&ps=25

Tony

Thanks Tony,

By the way, I want to thank you for all the work you do in the smartdxl site and the dxl forum.  You do a great job and I've learned a lot over the years.

Greg